/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="PARECERPACIENTE")
public class ParecerPacienteProteu implements Serializable{

    @Id
    @Column(name="AGD_ST_CODIGO")
    private String agdStCodigo;
    @Column(name="PAC_ST_RG")
    private String pacStRG;
    @Column(name="PAC_ST_CODIGO")
    private String pacStCodigo;
    @Column(name="PAC_DT_PARECER")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date pacDtParecer;
    @Lob
    @Column(name="PAC_BL_PARECER")
    private String pacBlParecer;
    @Column(name="MED_ST_CODIGO")
    private String medStCodigo;
    @Column(name="PPA_DT_INCLUSAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date ppaDtInclusao;
    @Column(name="USU_IN_CODIGO")
    private String usuInCodigo;

    public String getAgdStCodigo() {
        return agdStCodigo;
    }

    public void setAgdStCodigo(String agdStCodigo) {
        this.agdStCodigo = agdStCodigo;
    }

    public String getMedStCodigo() {
        return medStCodigo;
    }

    public void setMedStCodigo(String medStCodigo) {
        this.medStCodigo = medStCodigo;
    }

    public String getPacBlParecer() {
        return pacBlParecer;
    }

    public void setPacBlParecer(String pacBlParecer) {
        this.pacBlParecer = pacBlParecer;
    }

    public String getPacStCodigo() {
        return pacStCodigo;
    }

    public void setPacStCodigo(String pacStCodigo) {
        this.pacStCodigo = pacStCodigo;
    }

    public String getPacStRG() {
        return pacStRG;
    }

    public void setPacStRG(String pacStRG) {
        this.pacStRG = pacStRG;
    }

    public String getUsuInCodigo() {
        return usuInCodigo;
    }

    public void setUsuInCodigo(String usuInCodigo) {
        this.usuInCodigo = usuInCodigo;
    }

    public Date getPacDtParecer() {
        return pacDtParecer;
    }

    public void setPacDtParecer(Date pacDtParecer) {
        this.pacDtParecer = pacDtParecer;
    }

    public Date getPpaDtInclusao() {
        return ppaDtInclusao;
    }

    public void setPpaDtInclusao(Date ppaDtInclusao) {
        this.ppaDtInclusao = ppaDtInclusao;
    }

    
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ParecerPacienteProteu other = (ParecerPacienteProteu) obj;
        if ((this.agdStCodigo == null) ? (other.agdStCodigo != null) : !this.agdStCodigo.equals(other.agdStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 71 * hash + (this.agdStCodigo != null ? this.agdStCodigo.hashCode() : 0);
        return hash;
    }

    

}
